<?php
/**
 * User: 1971229701@qq.com
 * Date: 2020/11/3/003
 * Time: 10:46
 */

namespace app\common\validate;


use think\Validate;

class AdminVal extends Validate
{
    protected $rule = [
        'username' => 'require|unique:admin'
    ];

    protected $message = [
        'username.require' => '用户名不能为空',
        'username.unique' => '用户名已存在'
    ];

    protected $scene = [
        'create' => [
            'username'
        ]
    ];
}